/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.plechinger.mcremote.server.craft;

/**
 *
 * @author Lukas
 */
public enum CraftCommand {

    /**Null Command
     * 
     */
    NULL(""),
    /**
     * Shows a help Message
     */
    HELP("help"),
    
    /**
     * removes a player from the server
     */
    KICK("kick %s"),
    
    /**
     * bans a player from the server
     */
    BAN("ban %s"),
    
    /**
     * pardons a banned player so that they can connect again
     */
    PARDON("pardon %s"),
    
    /**
     * bans an IP address from the server
     */
    BAN_IP("ban-ip %s"),
    
    /**
     * pardons a banned IP address so that they can connect again
     */
    PARDON_IP("pardon-ip %s"),
    
    /**
     * turns a player into an op
     */
    OP("op %s"),
    
    /**
     * removes op status from a player
     */
    DEOP("deop %s"),
    
    /**
     * moves one player to the same location as another player
     */
    TELEPORT("tp %s %s"),
    
    /**
     * gives a player a resource
     */
    GIVE("give %s %s %s"),
    
    /**
     * sends a private message to a player
     */
    TELL("gell %s %s"),
    
    /**
     * gracefully stops the server
     */
    STOP("stop"),
    
    /**
     * forces a server-wide level save
     */
    SAVE_ALL("save-all"),
    
    /**
     * disables terrain saving (useful for backup scripts)
     */
    SAVE_OFF("save-off"),
    
    /**
     * re-enables terrain saving
     */
    SAVE_ON("save-on"),
    
    /**
     * lists all currently connected players
     */
    LIST("list"),
    
    /**
     * broadcasts a message to all players
     */
    SAY("say %s"),
    
    /**
     * adds to or sets the world time (0-24000)
     */
    TIME_SET("time set %s"),
    
    /**
     * adds to or sets the world time (0-24000)
     */
    TIME_ADD("time add %s"),
    
    /**
     * sets player's game mode (0 or 1)
     */
    GAMEMODE("gamemode %s %s"),
    
    /**
     * sets player's game mode (0 or 1)
     */
    GAMEMODE_SURVIVAL("gamemode %s 0"),
    
    /**
     * sets player's game mode (0 or 1)
     */
    GAMEMODE_CREATIVE("gamemode %s 1"),
    
    /**
     * turn on whitelist
     */
    WHITELIST_ON("whitelist on"),
    
    /**
     * turn off whitelist
     */
    WHITELIST_OFF("whitelist off"),
    
    /**
     * add player to whitelist
     */
    WHITELIST_ADD("whitelist add %s"),
    
    /**
     * remove player from whitelist
     */
    WHITELIST_REMOVE("whitelist remove %s"),
    
    /**
     * list all players in whitelist
     */
    WHITELIST_LIST("whitelist list"),
    
    /**
     * reload whitelist
     */
    WHITELIST_RELOAD("whitelist reload"),
    
    /**
     * turn on/off rain
     */
    TOGGLE_DOWNFALL("toggledownfall"),
    
    /**
     *
     */
    XP("xp %s %s");

    private CraftCommand(String command) {
        this.command = command;
    }
    private String command = null;

    public String getCommand() {
        return command;
    }
}
